<!DOCTYPE html>

















































<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

  <meta name="description" content="Javadoc API documentation for Gimlet." />

<link rel="shortcut icon" type="image/x-icon" href="../../../../favicon.ico" />
<title>

  MapLoadingIterable


| Gimlet

</title>
<link href="../../../../../assets/doclava-developer-docs.css" rel="stylesheet" type="text/css" />
<link href="../../../../../assets/customizations.css" rel="stylesheet" type="text/css" />
<script src="../../../../../assets/search_autocomplete.js" type="text/javascript"></script>
<script src="../../../../../assets/jquery-resizable.min.js" type="text/javascript"></script>
<script src="../../../../../assets/doclava-developer-docs.js" type="text/javascript"></script>
<script src="../../../../../assets/prettify.js" type="text/javascript"></script>
<script type="text/javascript">
  setToRoot("../../../../", "../../../../../assets/");
</script>
<script src="../../../../../assets/doclava-developer-reference.js" type="text/javascript"></script>
<script src="../../../../../assets/navtree_data.js" type="text/javascript"></script>
<script src="../../../../../assets/customizations.js" type="text/javascript"></script>
<noscript>
  <style type="text/css">
    html,body{overflow:auto;}
    #body-content{position:relative; top:0;}
    #doc-content{overflow:visible;border-left:3px solid #666;}
    #side-nav{padding:0;}
    #side-nav .toggle-list ul {display:block;}
    #resize-packages-nav{border-bottom:3px solid #666;}
  </style>
</noscript>
</head>

<body class="">

<div id="header">
    <div id="headerLeft">
    
      <span id="masthead-title">Gimlet</span>
    
    </div>
    <div id="headerRight">
      
  <div id="search" >
      <div id="searchForm">
          <form accept-charset="utf-8" class="gsc-search-box" 
                onsubmit="return submit_search()">
            <table class="gsc-search-box" cellpadding="0" cellspacing="0"><tbody>
                <tr>
                  <td class="gsc-input">
                    <input id="search_autocomplete" class="gsc-input" type="text" size="33" autocomplete="off"
                      title="search developer docs" name="q"
                      value="search developer docs"
                      onFocus="search_focus_changed(this, true)"
                      onBlur="search_focus_changed(this, false)"
                      onkeydown="return search_changed(event, true, '../../../../')"
                      onkeyup="return search_changed(event, false, '../../../../')" />
                  <div id="search_filtered_div" class="no-display">
                      <table id="search_filtered" cellspacing=0>
                      </table>
                  </div>
                  </td>
                  <td class="gsc-search-button">
                    <input type="submit" value="Search" title="search" id="search-button" class="gsc-search-button" />
                  </td>
                  <td class="gsc-clear-button">
                    <div title="clear results" class="gsc-clear-button">&nbsp;</div>
                  </td>
                </tr></tbody>
              </table>
          </form>
      </div><!-- searchForm -->
  </div><!-- search -->
      
    </div>
</div><!-- header -->


  <div class="g-section g-tpl-240" id="body-content">
    <div class="g-unit g-first side-nav-resizable" id="side-nav">
      <div id="swapper">
        <div id="nav-panels">
          <div id="resize-packages-nav">
            <div id="packages-nav">
              <div id="index-links"><nobr>
                <a href="../../../../packages.html"  >Package Index</a> | 
                <a href="../../../../classes.html" >Class Index</a></nobr>
              </div>
              <ul>
                
    <li class="selected api apilevel-">
  <a href="../../../../com/google/gimlet/batching/package-summary.html">com.google.gimlet.batching</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/google/gimlet/collect/package-summary.html">com.google.gimlet.collect</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/google/gimlet/commonality/package-summary.html">com.google.gimlet.commonality</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/google/gimlet/inject/introspectingscoper/package-summary.html">com.google.gimlet.inject.introspectingscoper</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/google/gimlet/inject/introspectingscoper/defaults/package-summary.html">com.google.gimlet.inject.introspectingscoper.defaults</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/google/gimlet/inject/introspectingscoper/noop/package-summary.html">com.google.gimlet.inject.introspectingscoper.noop</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/google/gimlet/inject/legprovider/package-summary.html">com.google.gimlet.inject.legprovider</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/google/gimlet/inject/nestedscope/package-summary.html">com.google.gimlet.inject.nestedscope</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/google/gimlet/inject/nestedscope/testing/package-summary.html">com.google.gimlet.inject.nestedscope.testing</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/google/gimlet/parallel/package-summary.html">com.google.gimlet.parallel</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/google/gimlet/reflect/package-summary.html">com.google.gimlet.reflect</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/google/gimlet/testing/easymock/package-summary.html">com.google.gimlet.testing.easymock</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/google/gimlet/testing/tl4j/package-summary.html">com.google.gimlet.testing.tl4j</a></li>
              </ul><br/>
            </div> <!-- end packages -->
          </div> <!-- end resize-packages -->
          <div id="classes-nav">
            <ul>
              
    <li><h2>Interfaces</h2>
      <ul>
          <li class="api apilevel-"><a href="../../../../com/google/gimlet/batching/Batch.html">Batch</a>&lt;T&gt;</li>
          <li class="api apilevel-"><a href="../../../../com/google/gimlet/batching/BatchIterable.html">BatchIterable</a>&lt;T&gt;</li>
          <li class="api apilevel-"><a href="../../../../com/google/gimlet/batching/BatchIterator.html">BatchIterator</a>&lt;T&gt;</li>
      </ul>
    </li>
              
    <li><h2>Classes</h2>
      <ul>
          <li class="api apilevel-"><a href="../../../../com/google/gimlet/batching/Batches.html">Batches</a></li>
          <li class="api apilevel-"><a href="../../../../com/google/gimlet/batching/KeyedBatch.html">KeyedBatch</a>&lt;K,&nbsp;V&gt;</li>
          <li class="api apilevel-"><a href="../../../../com/google/gimlet/batching/ListLoadingIterable.html">ListLoadingIterable</a>&lt;I,&nbsp;T&gt;</li>
          <li class="selected api apilevel-"><a href="../../../../com/google/gimlet/batching/MapLoadingIterable.html">MapLoadingIterable</a>&lt;K,&nbsp;V,&nbsp;I&gt;</li>
      </ul>
    </li>
              
              
              
              
            </ul><br/>
          </div><!-- end classes -->
        </div><!-- end nav-panels -->
        <div id="nav-tree" style="display:none">
          <div id="index-links"><nobr>
            <a href="../../../../packages.html"  >Package Index</a> | 
            <a href="../../../../classes.html" >Class Index</a></nobr>
          </div>
        </div><!-- end nav-tree -->
      </div><!-- end swapper -->
    </div> <!-- end side-nav -->
    <script>
      if (!isMobile) {
        $("<a href='#' id='nav-swap' onclick='swapNav();return false;' style='font-size:10px;line-height:9px;margin-left:1em;text-decoration:none;'><span id='tree-link'>Use Tree Navigation</span><span id='panel-link' style='display:none'>Use Panel Navigation</span></a>").appendTo("#side-nav");
        chooseDefaultNav();
        if ($("#nav-tree").is(':visible')) {
          init_default_navtree("../../../../");
        } else {
          addLoadEvent(function() {
            scrollIntoView("packages-nav");
            scrollIntoView("classes-nav");
          });
        }
        $("#swapper").css({borderBottom:"2px solid #aaa"});
      } else {
        swapNav(); // tree view should be used on mobile
      }
    </script>



<div class="g-unit" id="doc-content">

<div id="api-info-block">



  
   
  
  
  
  

  
   
  
  
  
  

  
   
  
  
  
  


<div class="sum-details-links">


Summary:










  <a href="#proctors">Protected Ctors</a>
  



  &#124; <a href="#promethods">Protected Methods</a>
  


  &#124; <a href="#inhmethods">Inherited Methods</a>

&#124; <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a>

</div><!-- end sum-details-links -->
<div class="api-level">
  


  
  

</div>
</div><!-- end api-info-block -->


<!-- ======== START OF CLASS DATA ======== -->

<div id="jd-header">
    public
     
     
    abstract
    class
<h1>MapLoadingIterable</h1>



  
  
  

  
    extends <a href="../../../../com/google/gimlet/batching/ListLoadingIterable.html">ListLoadingIterable</a>&lt;I,&nbsp;T&gt;<br/>
  
  
  

  
  
  


</div><!-- end header -->

<div id="naMessage"></div>

<div id="jd-content" class="api apilevel-">
<table class="jd-inheritance-table">


    <tr>
         	
        <td colspan="3" class="jd-inheritance-class-cell"><a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">java.lang.Object</a></td>
    </tr>
    

    <tr>
        
            <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
         	
        <td colspan="2" class="jd-inheritance-class-cell"><a href="../../../../com/google/gimlet/batching/ListLoadingIterable.html">com.google.gimlet.batching.ListLoadingIterable</a>&lt;I,&nbsp;T&gt;</td>
    </tr>
    

    <tr>
        
            <td class="jd-inheritance-space">&nbsp;</td>
        
            <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
         	
        <td colspan="1" class="jd-inheritance-class-cell">com.google.gimlet.batching.MapLoadingIterable&lt;K,&nbsp;V,&nbsp;I&gt;</td>
    </tr>
    

</table>







<div class="jd-descr">


<h2>Class Overview</h2>
<p>Helper classes that facilitates loading <code><a href="../../../../com/google/gimlet/batching/KeyedBatch.html">keyed batches</a></code>.
 <p>
 This is useful when trying to load all of foo for a given bar for all bars
 from disk.</p>



  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="../../../../com/google/gimlet/batching/ListLoadingIterable.html">ListLoadingIterable</a></code></li>
      </ul>
  </div>


</div><!-- jd-descr -->
















<div class="jd-descr">


<h2>Summary</h2>

























<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<table id="proctors" class="jd-sumtable"><tr><th colspan="12">Protected Constructors</th></tr>



	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            </nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../../com/google/gimlet/batching/MapLoadingIterable.html#MapLoadingIterable(I, com.google.gimlet.parallel.CallableTransform, java.lang.Integer)">MapLoadingIterable</a></span>(I initialValue, <a href="../../../../com/google/gimlet/parallel/CallableTransform.html">CallableTransform</a> loadCallableTransform, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Integer.html">Integer</a> batchSize)</nobr>
        
  </td></tr>



</table>






<!-- ========== METHOD SUMMARY =========== -->
<table id="promethods" class="jd-sumtable"><tr><th colspan="12">Protected Methods</th></tr>



	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            I</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../../com/google/gimlet/batching/MapLoadingIterable.html#getNextId(com.google.gimlet.batching.KeyedBatch<K, V>)">getNextId</a></span>(<a href="../../../../com/google/gimlet/batching/KeyedBatch.html">KeyedBatch</a>&lt;K,&nbsp;V&gt; previousEnd)</nobr>
        
        <div class="jd-descrdiv">Returns the nextId that will used as the beginning of the next batch given
 the last entry returned from the current batch.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            Ordering&lt;K&gt;</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../../com/google/gimlet/batching/MapLoadingIterable.html#getOrdering()">getOrdering</a></span>()</nobr>
        
        <div class="jd-descrdiv">Returns an ordering for how to sort the map keys so that we can return
 them in the correct order.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            I</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../../com/google/gimlet/batching/MapLoadingIterable.html#innerGetNextId(K)">innerGetNextId</a></span>(K previousEnd)</nobr>
        
        <div class="jd-descrdiv">Returns the nextId that should be use to load the next batch, based on
 the last key that was part of the previous batch.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/util/Map.html">Map</a>&lt;K,&nbsp;<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/util/List.html">List</a>&lt;V&gt;&gt;</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../../com/google/gimlet/batching/MapLoadingIterable.html#loadBatch(I, java.lang.Integer)">loadBatch</a></span>(I beginIdForBatch, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Integer.html">Integer</a> batchSize)</nobr>
        
        <div class="jd-descrdiv">Loads a batch of entries starting with the given beginIdForBatch.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/util/List.html">List</a>&lt;<a href="../../../../com/google/gimlet/batching/KeyedBatch.html">KeyedBatch</a>&lt;K,&nbsp;V&gt;&gt;</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../../com/google/gimlet/batching/MapLoadingIterable.html#loadNextBatch(I)">loadNextBatch</a></span>(I beginIdForBatch)</nobr>
        
        <div class="jd-descrdiv">Loads a batch of items starting with beginIdForBatch.</div>
  
  </td></tr>



</table>





<!-- ========== METHOD SUMMARY =========== -->
<table id="inhmethods" class="jd-sumtable"><tr><th>
  <a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a>
  <div style="clear:left;">Inherited Methods</div></th></tr>


<tr class="api apilevel-" >
<td colspan="12">
  <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-com.google.gimlet.batching.ListLoadingIterable" class="jd-expando-trigger closed"
          ><img id="inherited-methods-com.google.gimlet.batching.ListLoadingIterable-trigger"
          src="../../../../../assets/images/triangle-closed.png"
          class="jd-expando-trigger-img" /></a>
From class

  <a href="../../../../com/google/gimlet/batching/ListLoadingIterable.html">com.google.gimlet.batching.ListLoadingIterable</a>

<div id="inherited-methods-com.google.gimlet.batching.ListLoadingIterable">
  <div id="inherited-methods-com.google.gimlet.batching.ListLoadingIterable-list"
        class="jd-inheritedlinks">
  </div>
  <div id="inherited-methods-com.google.gimlet.batching.ListLoadingIterable-summary" style="display: none;">
    <table class="jd-sumtable-expando">
    


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            I</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../../com/google/gimlet/batching/ListLoadingIterable.html#getNextId(T)">getNextId</a></span>(T previousEnd)</nobr>
        
        <div class="jd-descrdiv">Returns the nextId that will used as the beginning of the next batch given
 the last entry returned from the current batch.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/util/Iterator.html">Iterator</a>&lt;T&gt;</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../../com/google/gimlet/batching/ListLoadingIterable.html#iterator()">iterator</a></span>()</nobr>
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/util/List.html">List</a>&lt;T&gt;</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="../../../../com/google/gimlet/batching/ListLoadingIterable.html#loadNextBatch(I)">loadNextBatch</a></span>(I beginIdForBatch)</nobr>
        
        <div class="jd-descrdiv">Loads a batch of items starting with beginIdForBatch.</div>
  
  </td></tr>


</table>
  </div>
</div>
</td></tr>



<tr class="api apilevel-" >
<td colspan="12">
  <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed"
          ><img id="inherited-methods-java.lang.Object-trigger"
          src="../../../../../assets/images/triangle-closed.png"
          class="jd-expando-trigger-img" /></a>
From class

  <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">java.lang.Object</a>

<div id="inherited-methods-java.lang.Object">
  <div id="inherited-methods-java.lang.Object-list"
        class="jd-inheritedlinks">
  </div>
  <div id="inherited-methods-java.lang.Object-summary" style="display: none;">
    <table class="jd-sumtable-expando">
    


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad">clone</span>()</nobr>
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad">equals</span>(<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Object.html">Object</a> arg0)</nobr>
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad">finalize</span>()</nobr>
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Class.html">Class</a>&lt;?&gt;</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad">getClass</span>()</nobr>
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            int</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad">hashCode</span>()</nobr>
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad">notify</span>()</nobr>
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad">notifyAll</span>()</nobr>
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/String.html">String</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad">toString</span>()</nobr>
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad">wait</span>()</nobr>
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad">wait</span>(long arg0, int arg1)</nobr>
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad">wait</span>(long arg0)</nobr>
        
  </td></tr>


</table>
  </div>
</div>
</td></tr>



<tr class="api apilevel-" >
<td colspan="12">
  <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Iterable" class="jd-expando-trigger closed"
          ><img id="inherited-methods-java.lang.Iterable-trigger"
          src="../../../../../assets/images/triangle-closed.png"
          class="jd-expando-trigger-img" /></a>
From interface

  <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Iterable.html">java.lang.Iterable</a>

<div id="inherited-methods-java.lang.Iterable">
  <div id="inherited-methods-java.lang.Iterable-list"
        class="jd-inheritedlinks">
  </div>
  <div id="inherited-methods-java.lang.Iterable-summary" style="display: none;">
    <table class="jd-sumtable-expando">
    


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/util/Iterator.html">Iterator</a>&lt;T&gt;</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad">iterator</span>()</nobr>
        
  </td></tr>


</table>
  </div>
</div>
</td></tr>


</table>


</div><!-- jd-descr (summary) -->

<!-- Details -->








<!-- XML Attributes -->


<!-- Enum Values -->


<!-- Constants -->


<!-- Fields -->


<!-- Public ctors -->



<!-- ========= CONSTRUCTOR DETAIL ======== -->
<!-- Protected ctors -->

<h2>Protected Constructors</h2>



<A NAME="MapLoadingIterable(I, com.google.gimlet.parallel.CallableTransform, java.lang.Integer)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
         
         
         
        
      </span>
      <span class="sympad">MapLoadingIterable</span>
      <span class="normal">(I initialValue, <a href="../../../../com/google/gimlet/parallel/CallableTransform.html">CallableTransform</a> loadCallableTransform, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Integer.html">Integer</a> batchSize)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>initialValue</td>
          <td>an initial value to represent the first "bar" to load.</td>
        </tr>
        <tr>
          <th>loadCallableTransform</td>
          <td>transform that gets applied when
 <code><a href="../../../../com/google/gimlet/batching/MapLoadingIterable.html#loadNextBatch(I)">loadNextBatch(I)</a></code> get called within its own callable. This allows one
 to decorate this call.</td>
        </tr>
        <tr>
          <th>batchSize</td>
          <td>The max number of "foos" that get returned for a given
</td>
        </tr>
      </table>
  </div>

    </div>
</div>





<!-- ========= METHOD DETAIL ======== -->
<!-- Public methdos -->



<!-- ========= METHOD DETAIL ======== -->

<h2>Protected Methods</h2>



<A NAME="getNextId(com.google.gimlet.batching.KeyedBatch<K, V>)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
         
         
         
        I
      </span>
      <span class="sympad">getNextId</span>
      <span class="normal">(<a href="../../../../com/google/gimlet/batching/KeyedBatch.html">KeyedBatch</a>&lt;K,&nbsp;V&gt; previousEnd)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Returns the nextId that will used as the beginning of the next batch given
 the last entry returned from the current batch.
</p></div>

    </div>
</div>


<A NAME="getOrdering()"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
         
        abstract 
         
        Ordering&lt;K&gt;
      </span>
      <span class="sympad">getOrdering</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Returns an ordering for how to sort the map keys so that we can return
 them in the correct order.
</p></div>

    </div>
</div>


<A NAME="innerGetNextId(K)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
         
        abstract 
         
        I
      </span>
      <span class="sympad">innerGetNextId</span>
      <span class="normal">(K previousEnd)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Returns the nextId that should be use to load the next batch, based on
 the last key that was part of the previous batch.
</p></div>

    </div>
</div>


<A NAME="loadBatch(I, java.lang.Integer)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
         
        abstract 
         
        <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/util/Map.html">Map</a>&lt;K,&nbsp;<a href="http://download.oracle.com/javase/6/docs/api/index.html?java/util/List.html">List</a>&lt;V&gt;&gt;
      </span>
      <span class="sympad">loadBatch</span>
      <span class="normal">(I beginIdForBatch, <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/lang/Integer.html">Integer</a> batchSize)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Loads a batch of entries starting with the given beginIdForBatch. The sum
 of the sizes of values for entries should at most be batch size. One does
 not need to worry if the "last" K (bar) according to the ordering is
 incomplete or not. It will automatically be removed and the
 nextIdFunction will be applied to the previous element which should result
 in the last "K" being loaded.
</p></div>

    </div>
</div>


<A NAME="loadNextBatch(I)"></A>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
        final 
         
         
        <a href="http://download.oracle.com/javase/6/docs/api/index.html?java/util/List.html">List</a>&lt;<a href="../../../../com/google/gimlet/batching/KeyedBatch.html">KeyedBatch</a>&lt;K,&nbsp;V&gt;&gt;
      </span>
      <span class="sympad">loadNextBatch</span>
      <span class="normal">(I beginIdForBatch)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Loads a batch of items starting with beginIdForBatch. </p></div>

    </div>
</div>





<!-- ========= END OF CLASS DATA ========= -->
<A NAME="navbar_top"></A>

<div id="footer">
Generated by <a href="http://code.google.com/p/doclava/">Doclava</a>.
</div> <!-- end footer -->

</div> <!-- jd-content -->

</div><!-- end doc-content -->

</div> <!-- end body-content --> 

<script type="text/javascript">
init(); /* initialize doclava-developer-docs.js */
</script>

</body>
</html>
